/*
 * Created on 16.01.2004
 * Local Projects Database
 * Mihai Postelnicu (mihai@ro-gateway.org)
 * (c) 2003 by eRomania Gateway
 */
package ro.gateway.aida.db;

/**
 * @author Mihai Postelnicu<p>
 *
 *  e-mail (mihai@ro-gateway.org)<br>
 * (c) 2003 by eRomania Gateway<p>
 *  This ensures that the given object is synchronized with the db object : <br>
 * - for synchronize: if the object is new, the add method is invoked<br>
 * 		if the object is old and modified, the update method is invoked<br>
 * - the get method can return a list or a sole object (depending on the input object parameters in consructor)
 */
public interface DBWrapable {
	public void synchronize(Object o) throws Exception;
	public void delete(Object o) throws Exception;
	public Object get(Object o) throws Exception;
}
